<div class="yui-g">

    <?php if($this->session->userdata('logged_in')):?>
    <div id="contenido">
        <div id="menuh">
            <ul>
                <li><a href="<?=base_url();?>index.php/admin/banners/crear/" id="primero">Agregar banners</a></li>
            </ul>
        </div>
        <div style="clear : left; height:5px;"></div>
        <table class="espaciado2" border="1" width="90%">
            <tr>
                <th style="text-align:center;"><?=lang('nombre_noticia');?></th>
                <th style="text-align:center;"><?=lang('texto_noticia');?></th>
                <th style="text-align:center;"><?=lang('tipo_noticia');?></th>
                <th style="text-align:center;"><?=lang('peso_noticia');?></th>
                <th style="text-align:center;"><?=lang('editar_noticia');?></th>
                <th style="text-align:center;"><?=lang('eliminar_noticia');?></th>
            </tr>
                <?php foreach ($contenido->result() as $fila):?>
            <tr>
                <td><?=$fila->nombre?></td>
                <td>Ampliar</td>
                <td><?=$fila->tipo?></td>
                <td><?=$fila->peso?></td>
                <td><a href="<?=base_url();?>index.php/admin/banners/editar/<?=$fila->id?>">Editar banner</a></td>
                <td><a href="<?=base_url();?>index.php/admin/banners/eliminar/<?=$fila->id?>">Eliminar banner</a></td>
            </tr>
            <tr><td colspan="6"></td></tr>
                <?php endforeach;?>
        </table>
    </div>
    <?php endif;?>

</div>
